#include<iostream>
#include"list.cpp"
#include<cmath>
using namespace std;
int main(void)
{
	double  a, b, c, d;
	cout << "Please input four numbers\n";
	cin >> a >> b >> c >> d;
	Plural p1(a, b), p2(c, d);
	Plural p3, p4, p5, p6;
	p3 = p1.Plus(p2);
	p3.Display();
	p4 = p1.Minus(p2);
	p4.Display();
	p5 = p1.Multiply(p2);
	p5.Display();
	if (p2.Judgement())
	{
		p6 = p1.Divide(p2);
		p6.Display();
	}
	else
		cout << "You can not divide!" << endl;
	return 0;
}